package com.ibeeking.found.open.b.rest.service;

import com.ibeeking.found.open.api.common.dto.GoodsInfoDTO;
import com.ibeeking.found.open.api.common.dto.GoodsListDTO;
import com.ibeeking.found.open.api.common.query.GoodsListQuery;
import com.ibeeking.nematos.utils.base.page.Page;

/**
 * @ClassName IGoodsService
 * @Description
 * @Author ibeeking
 * @Date 2021-06-14 19:17
 **/
public interface IGoodsService {

    /**
     * 分页查询商品
     *
     * @param query
     * @return
     */
    Page<GoodsListDTO> goodsList(GoodsListQuery query);

    /**
     * 查询商品详情
     * @param goodsId
     * @return
     */
    GoodsInfoDTO goodsInfo(Long goodsId);
}
